3.6.78 \(\int \frac {1}{\sqrt {-9+b x^2}} \, dx\) [578]

Optimal. Leaf size=25 \[ \frac {\tanh ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {-9+b x^2}}\right )}{\sqrt {b}} \]

[Out]

arctanh(x*b^(1/2)/(b*x^2-9)^(1/2))/b^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 0.00, antiderivative size = 25, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.182, Rules used = {223, 212} \begin {gather*} \frac {\tanh ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {b x^2-9}}\right )}{\sqrt {b}} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[1/Sqrt[-9 + b*x^2],x]

[Out]

ArcTanh[(Sqrt[b]*x)/Sqrt[-9 + b*x^2]]/Sqrt[b]

Rule 212

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[-b, 2]))*ArcTanh[Rt[-b, 2]*(x/Rt[a, 2])], x]
 /; FreeQ[{a, b}, x] && NegQ[a/b] && (GtQ[a, 0] || LtQ[b, 0])

Rule 223

Int[1/Sqrt[(a_) + (b_.)*(x_)^2], x_Symbol] :> Subst[Int[1/(1 - b*x^2), x], x, x/Sqrt[a + b*x^2]] /; FreeQ[{a,
b}, x] &&  !GtQ[a, 0]

Rubi steps

\begin {align*} \int \frac {1}{\sqrt {-9+b x^2}} \, dx &=\text {Subst}\left (\int \frac {1}{1-b x^2} \, dx,x,\frac {x}{\sqrt {-9+b x^2}}\right )\\ &=\frac {\tanh ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {-9+b x^2}}\right )}{\sqrt {b}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.01, size = 25, normalized size = 1.00 \begin {gather*} \frac {\tanh ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {-9+b x^2}}\right )}{\sqrt {b}} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[1/Sqrt[-9 + b*x^2],x]

[Out]

ArcTanh[(Sqrt[b]*x)/Sqrt[-9 + b*x^2]]/Sqrt[b]

________________________________________________________________________________________

Maple [A]
time = 0.03, size = 21, normalized size = 0.84

method result size
default \(\frac {\ln \left (x \sqrt {b}+\sqrt {b \,x^{2}-9}\right )}{\sqrt {b}}\) \(21\)
meijerg \(\frac {\sqrt {-\mathrm {signum}\left (-1+\frac {b \,x^{2}}{9}\right )}\, \arcsin \left (\frac {x \sqrt {b}}{3}\right )}{\sqrt {\mathrm {signum}\left (-1+\frac {b \,x^{2}}{9}\right )}\, \sqrt {b}}\) \(36\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(b*x^2-9)^(1/2),x,method=_RETURNVERBOSE)

[Out]

ln(x*b^(1/2)+(b*x^2-9)^(1/2))/b^(1/2)

________________________________________________________________________________________

Maxima [A]
time = 0.28, size = 24, normalized size = 0.96 \begin {gather*} \frac {\log \left (2 \, b x + 2 \, \sqrt {b x^{2} - 9} \sqrt {b}\right )}{\sqrt {b}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(b*x^2-9)^(1/2),x, algorithm="maxima")

[Out]

log(2*b*x + 2*sqrt(b*x^2 - 9)*sqrt(b))/sqrt(b)

________________________________________________________________________________________

Fricas [A]
time = 1.35, size = 57, normalized size = 2.28 \begin {gather*} \left [\frac {\log \left (2 \, b x^{2} + 2 \, \sqrt {b x^{2} - 9} \sqrt {b} x - 9\right )}{2 \, \sqrt {b}}, -\frac {\sqrt {-b} \arctan \left (\frac {\sqrt {-b} x}{\sqrt {b x^{2} - 9}}\right )}{b}\right ] \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(b*x^2-9)^(1/2),x, algorithm="fricas")

[Out]

[1/2*log(2*b*x^2 + 2*sqrt(b*x^2 - 9)*sqrt(b)*x - 9)/sqrt(b), -sqrt(-b)*arctan(sqrt(-b)*x/sqrt(b*x^2 - 9))/b]

________________________________________________________________________________________

Sympy [C] Result contains complex when optimal does not.
time = 0.44, size = 37, normalized size = 1.48 \begin {gather*} \begin {cases} \frac {\operatorname {acosh}{\left (\frac {\sqrt {b} x}{3} \right )}}{\sqrt {b}} & \text {for}\: \left |{b x^{2}}\right | > 9 \\- \frac {i \operatorname {asin}{\left (\frac {\sqrt {b} x}{3} \right )}}{\sqrt {b}} & \text {otherwise} \end {cases} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(b*x**2-9)**(1/2),x)

[Out]

Piecewise((acosh(sqrt(b)*x/3)/sqrt(b), Abs(b*x**2) > 9), (-I*asin(sqrt(b)*x/3)/sqrt(b), True))

________________________________________________________________________________________

Giac [A]
time = 0.77, size = 36, normalized size = 1.44 \begin {gather*} \frac {1}{2} \, \sqrt {b x^{2} - 9} x + \frac {9 \, \log \left ({\left | -\sqrt {b} x + \sqrt {b x^{2} - 9} \right |}\right )}{2 \, \sqrt {b}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(b*x^2-9)^(1/2),x, algorithm="giac")

[Out]

1/2*sqrt(b*x^2 - 9)*x + 9/2*log(abs(-sqrt(b)*x + sqrt(b*x^2 - 9)))/sqrt(b)

________________________________________________________________________________________

Mupad [B]
time = 0.08, size = 20, normalized size = 0.80 \begin {gather*} \frac {\ln \left (\sqrt {b\,x^2-9}+\sqrt {b}\,x\right )}{\sqrt {b}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(b*x^2 - 9)^(1/2),x)

[Out]

log((b*x^2 - 9)^(1/2) + b^(1/2)*x)/b^(1/2)

________________________________________________________________________________________